package org.tlipoca.smsteamstore.task;


import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.tlipoca.smsteamstore.service.SteamStoreCacheService;

@Slf4j
public class SteamStoreRecommendDailyTask {

    @Resource
    private SteamStoreCacheService service;

    @Scheduled(cron = " 0 0 5/24 * * ? ")
    public void randRecommend(){
        log.info("清楚缓存");
        service.clearCache();

        log.info("更新每日推荐");
        service.recommendApp();
    }

}
